package com.efast.dmom.mgmt.controller.master;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.bean.master.TmBasBomRequestData;
import com.efast.dmom.mgmt.service.master.TmBasBomService;

/**
 * <p>
 * bill of material 前端控制器
 * </p>
 *
 * @author Xu Cong
 * @since 2018-09-19
 */
@Controller
@RequestMapping("/tmBasBom")
public class TmBasBomController {

	@Autowired
	TmBasBomService bomService;

	@RequestMapping(value = "/deleteBom")
	public @ResponseBody ResultBean deleteBom(@RequestBody TmBasBomRequestData bomData) {

		ResultBean result = new ResultBean(true, null);

		bomService.deleteBom(bomData.getTmBasBomId());

		return result;
	}
}
